<?php
$url = '?md=' . MvcReg::$_moduleName . '&cl=' . MvcReg::$_controllerName . '&at=' . str_replace('add', '', MvcReg::$_actionName) . 'update';

?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>
    <style>
        .modal-dialog{width:1000px;}
        #main .right-content{min-height: 1500px}
    </style>
</head>
<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-10">
                <div class="right-content">
                    <a href="?md=company&cl=riders&at=riders_no_pass_list&page=<?php echo $page?>"  class="btn btn-white btn-xs pull-right goback floatright">返回上一级</a>
                    <h3>
                        <ol class="breadcrumb"><li><a href="?md=company&cl=riders&at=riders_no_pass_list&page=<?php echo $page?>"><i class="fa fa-dashboard"></i><?php echo $menu["breadcrumb_current"]?></a><li class="active">查看</li></li></ol>
                    </h3>
                    <div class="col-sm-10">
                        <div class="wrapper wrapper-content animated fadeInUp">
                            <div class="ibox">
                                <div class="ibox-content">
                                    <form class="form-horizontal">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">姓名：</label>
                                            <div class="col-sm-5">
                                                <input type="email" placeholder="姓名" class="form-control" value="<?php echo $rsp_list['name'];?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">性别：</label>
                                            <div class="col-sm-5">
                                                <?php if($rsp_list['sex'] == 1){ $sex = '男';}else{
                                                    $sex = '女';
                                                }?>
                                                <input type="text" placeholder="性别" class="form-control" value="<?php echo $sex;?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">出生年月：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="出生年月" class="form-control" value="<?php echo $rsp_list['birth_date'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">年龄：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="年龄" class="form-control" value="<?php echo $rsp_list['age'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">联系电话：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="联系电话" class="form-control" value="<?php echo $rsp_list['tel'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">常住地址：</label>
                                            <div class="col-sm-5">
                                                <?php foreach($province as $pk=>$pv){
                                                    if($pv['code'] == $rsp_list['province']){
                                                        $province = $pv['fullname'];
                                                    }
                                                    if ($pv['code'] == $rsp_list['city']){
                                                        $city = $pv['fullname'];
                                                    } if ($pv['code'] == $rsp_list['area']){
                                                        $area = $pv['fullname'];
                                                    }
                                                }?>
                                                <input type="text" placeholder="常住地址" class="form-control" value="<?php echo $province.' '.$city.' '.$area;?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"></label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="常住地址" class="form-control" value="<?php echo $rsp_list['address'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">服务城市：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="服务城市" class="form-control" value="<?php echo $rsp_list['service_city'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">身份证号码：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="身份证号码" class="form-control" value="<?php echo $rsp_list['id_card'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">身份证（正面）：</label>
                                            <div class="col-sm-9">
                                                <div class="input-group" >
                                                    <img src="webroot/file/riders/<?php echo $rsp_list['card_front_img'];?>" id="img_card_front1" alt="" style="width: 350px;height:170px;border: 1px solid #CCCCCC">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">身份证（反面）：</label>
                                            <div class="col-sm-9">
                                                <div class="input-group" >
                                                    <img src="webroot/file/riders/<?php echo $rsp_list['card_back_img'];?>" id="img_card_front2" alt=""  style="width: 350px;height:170px;border: 1px solid #CCCCCC">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">健康证：</label>
                                            <div class="col-sm-9">
                                                <div class="input-group" >
                                                    <img src="webroot/file/riders/<?php echo $rsp_list['health_cards'];?>" id="img_card_front3" alt=""  style="width: 350px;height:170px;border: 1px solid #CCCCCC">
                                                </div>
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">健康证起始时间</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="" class="form-control" value="<?php echo strstr($rsp_list['jkz_start'],' ', true);?>  至 <?php echo strstr($rsp_list['jkz_end'],' ', true);?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">简历：</label>
                                            <div class="col-sm-5">
<!--                                                <input type="text" placeholder="简历" class="form-control">-->
                                                <textarea name="" id="" class="form-control"  style="width: 100%;height: 120px;" ><?php echo $rsp_list['resume'];?></textarea>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">紧急联系人：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="紧急联系人" class="form-control" value="<?php echo $rsp_list['urgency_cont_username'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">紧急联系人电话：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="紧急联系人电话" class="form-control" value="<?php echo $rsp_list['urgency_cont_username_tel'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">与本人关系：</label>
                                            <div class="col-sm-5">
                                                <input type="text" placeholder="与本人关系" class="form-control" value="<?php echo $rsp_list['urgency_relation'];?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">审核：</label>
                                            <div class="col-sm-5">
                                                <input type="text" class="form-control" value="未通过" disabled>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">审核原因：</label>
                                            <div class="col-sm-5">
                                                <input type="text" class="form-control" value="<?php echo $rsp_list['remark'];?>" disabled>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
    <?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
    <?php include_once MvcReg::$_moduleName . '/views/order/order_delivery_infoView.php'; ?>
</body>
</html>
